package com.lecture.java8.sharding;//package com.lecture.java8.sharding;
//
//import com.zaxxer.hikari.HikariDataSource;
//
//import javax.sql.DataSource;
//
//public class DataSourceConfig {
//
//    public static DataSource createDataSource(String jdbcUrl, String username, String password) {
//        HikariDataSource dataSource = new HikariDataSource();
//        dataSource.setJdbcUrl(jdbcUrl);
//        dataSource.setUsername(username);
//        dataSource.setPassword(password);
//        dataSource.setMaximumPoolSize(10);  // 设置连接池大小
//        return dataSource;
//    }
//}
